<template>
    <div>
        <div class="container">
            <div class="e-p-b-30" style="font-size: 18px;">出库销售</div>
            <el-radio-group v-model="dataType" class="e-m-b-45">
                <el-radio-button label="0">数据中台</el-radio-button>
                <el-radio-button label="1">库存表</el-radio-button>
                <el-radio-button label="2">线上回收统计</el-radio-button>
                <el-radio-button label="3">门店回收统计</el-radio-button>
                <el-radio-button label="4">小哥入库统计</el-radio-button>
                <el-radio-button label="5">出库销售统计</el-radio-button>
            </el-radio-group>
            <statistics-store-sell></statistics-store-sell>
        </div>
    </div>
</template>

<script>
import timeChangeList from '@/components/form-select-type/timeChangeList.vue'
import storeList from '@/components/form-select-type/storeList.vue'
import franchiseList from '@/components/form-select-type/franchiseList.vue'
export default {
    components: {
        timeChangeList,
        storeList,
        franchiseList
    },
    layout: 'admin',
    data() {
        return {
            dataType: 5,
        };
    },
    watch: {
        dataType(val) {
            console.log(val)
            let type = Number(val)
            switch (type) {
                case 0:
                    this.$router.push({
                        path: '/'
                    })
                    break;
                case 1:
                    this.$router.push({
                        path: '/statistics/inventory'
                    })
                    break;
                case 2:
                    this.$router.push({
                        path: '/statistics/online'
                    })
                    break;
                case 3:
                    this.$router.push({
                        path: '/statistics/store'
                    })
                    break;
                case 4:
                    this.$router.push({
                        path: '/statistics/onlinestorage'
                    })
                    break;
                case 5:
                    this.$router.push({
                        path: '/statistics/storeSell'
                    })
                    break;
            }
        }
    },
    methods: {
        
    }
}
</script>

<style lang="scss" scoped>

</style>